package cn.itsource.org.domain;

import cn.itsource.basic.domain.BaseDomain;
import cn.itsource.basic.domain.BaseTreeNode;
import cn.itsource.basic.util.PetConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

@Data //生成get set hashcode toString
@AllArgsConstructor //全参数构造
@NoArgsConstructor //无参构造
@Table(name = "t_shop")
@Api("店铺对象")
public class Shop extends BaseDomain {
    //店铺名称
    private String name;
    //电话
    private String tel;
    //注册时间
    private Date register_time = new Date();
    //状态 1.待审核 2.审核通过待激活 3.激活成功 4.驳回
    private Integer state = PetConstant.Shop.TO_BE_REVIEWED;//1待激活
    //地址
    private String address;
    //招牌
    private String logo;
    //管理员id
    private Long admin_id;
    //店铺的管理员信息
    private Employee admin;
}
